var tp = document.querySelectorAll('.tp')
// console.log(tp)
var fj = document.getElementById('fj')
for(var i=0; i<tp.length; i++){
    tp[i].onmouseover = function(){
        var a=this.getAttribute('status');
            console.log(a);
            if(a==1){
                fj.src = fj.src='images/new1.jpg';
            }
            if(a==2){
                fj.src = fj.src='images/new2.jpg';
            }
            if(a==3){
                fj.src = fj.src='images/new3.jpg';
            }
            if(a==4){
                fj.src = fj.src='images/new4.jpg';
            }
        }
    }
    var t = setInterval(show,1000);
    var m = 1;
    function show(){
        if(m>4){
            m = 1;
        }
        a.src = a[m];
        m++
    }